package com.yimils.core.sys.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yimils.core.sys.dto.ReqAddUserRole;
import com.yimils.core.sys.entity.UserRoleEntity;
import com.yimils.core.sys.po.UserRoleDo;

import java.util.List;


public interface UserRoleService extends IService<UserRoleEntity> {
    boolean addUserRole(ReqAddUserRole reqParams);
    Long getHighestRoleId(Long userId);

    List<UserRoleDo> getRolesByUserId(Long id);
    UserRoleEntity getRoleInType(Long userId, Integer type);

    Integer UR_SYS = 0;//系统用户
    Integer UR_ONE_PARTNER = 1;//运营型合伙人
    Integer UR_TWO_PARTNER = 2;//投资型合伙人
    Integer UR_HOTEL = 100;//酒店负责人
    Integer UR_FEEDER = 200;//补货员
    Integer UR_OPTSPC = 300;//运营专员
}
